<template>
  <div class="container">
    <h2><strong>跑马灯测试</strong></h2>
    <div class="marquee">
      <div class="main-view">
        <img :src="require('../../common/img/login/img01.png')">
        <img :src="require('../../common/img/login/img02.png')">
        <img :src="require('../../common/img/login/img03.png')">
      </div>
      <div class="page-switch clearfloat">
        <i class="switch-l fa fa-arrow-left"></i>
        <i class="switch-r fa fa-arrow-right"></i>
      </div>
      <ul>
        <li></li>
      </ul>
    </div>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        name: "Marquee"
      }
    }
  }
</script>

<style scoped>
  * {
    margin: 0;
  }

  .marquee {
    margin-top: 50px;
  }

  .marquee, .main-view {
    position: relative;
  }

  .main-view {
    height: 400px;
  }

  .container {
    width: 1080px;
    text-align: center;
    margin: 0 auto;
  }

  .main-view img {
    width: 100%;
    height: 400px;
    position: absolute;
    top: 0;
    left: 0;
  }

  .page-switch {
    z-index: 1000;
    opacity: 0.5;
    height: 400px;
    width: 1080px;
    background-color: #8c939d;
    position: absolute;
    top:0;
  }

  .switch-l, .switch-r {
    font-size: 50px;
    color: white;
    transition: opacity 1s;
    height:50px;
    width: 60px;
    background-color: #CCCCCC;
    border-radius: 50%;
    margin-top: 175px ;
    display: none;
  }

  .switch-l {
    float: left;
    margin-left: 50px;
  }

  .switch-r {
    float: right;
    margin-right: 50px;
  }
  .switch-l:hover, .switch-r:hover {
    opacity: 0.8;
    display: block;

  }
</style>
